<?php
	session_start();
	if(isset($_SESSION['guest']))
		header("Location: main.php");
	
	$logout = $_GET['logout'];
	if($logout==1){
		session_destroy();
	}

?>
<html>
<body>

<style type="text/css">
	#myoutercontainer { position:relative }
	#myinnercontainer { position:relative; top:90%; height:0em; margin-top: 4em; margin-left:auto; margin-right:auto; width:40em}
</style>

<?php
	if($_GET['error']==1){
	echo "<center><h5>Invalid username or password!</h5></center>";
	}
?>

<div id="myoutercontainer">
	<div id="myinnercontainer">
	<center><img src="http://www4.picturepush.com/photo/a/5633827/220/5633827.jpg" alt="MSCD LOGO" width="100" height="100" /></center>
	<br></br>
	<center>
	<tr>
		<td>
			<form action="main.php" method="post">
			<center>
			<table>
				<tr>
					<td><center><font face="helvetica">Username:<input type="text" size=20 name="username"/></font></center></td>
				</tr>
				<tr>
					<td><center><font face="helvetica">Password:<input type="password" size=20 name="password"/></font></center></td>
				<tr></tr>
				<tr>

					<td><center><input type="hidden" name="guest" value="not_guest" style="height:50em; width:50em;"/><input type="submit"/></td>
				
			</table>
			</center>
			</form>
		</td>
	</tr>
</table>

	<HR WIDTH="50%" COLOR="#2D9330" SIZE="3">
</center>
	<center>
	<form action="main.php" method="post">
			<table>
				<tr>
					<td><center><input type="hidden" name="guest" value="guest"/><input type="submit" value="Enter as Guest"/></td>
				</tr>
			</table>
			</form>
			<p/>
			<form action="main.php" method="post">
			<table>
				<tr>
					<td><center><input type="hidden" name="guest" value="babe"/><input type="submit" value="Enter as Babe"/></td>
				</tr>
			</table>
			</form>
			</center>
			</div>
			</div>
</body>
</html>